{% extends "base.html" %}

{% block body %}

<h1>Picked resources:</h1>

<p>Starring resources lets you export or graph several resources as once, click the star icon next to labels of a few things, then come here and export or graph them together.
<br/>
Click the stars in the list below to deselect individual resources.
</p>

<ul>
{% if things %}
{% for r in things %}
<li>
<a href="{{url_for('pick', uri=r.realurl)}}"><img src="{{url_for('static', filename='star_active.png')}}" /></a>


<a href='{{r.url}}'>{{r.label}}</a></li>
{% endfor %}
{% else %}
<li>Nothing picked</li>
{% endif %}
</ul>

<a href="{{url_for('picked', action='clear')}}"><img src="{{url_for('static', filename='star_inactive.png')}}" />clear all</a>


<div class='inlinelist'><h2>Download as:</h2>
<ul class='inlinelist'>
{% for f in ("xml", "turtle", "nt") %}
  <li><a href="{{url_for('picked', action='download', format_=f)}}">{{f}}</a></li>
{% endfor %}
</ul>
<br />
</div>

  <div class='inlinelist'><h2>RDF Graph:</h2>
    <p>Draw the RDF graph.</p>
<ul class='inlinelist'>
{% for f in ("png","svg","pdf","dot") %}
  <li><a href="{{url_for('picked', action='rdfgraph', format_=f)}}">{{f}}</a></li>
{% endfor %}
</ul>
<br />
</div>

  <div class='inlinelist'><h2>RDFSchema Graph:</h2>
    <p>Draw the a diagram of the RDFS Classes and Properties, if you did not select any - the graph may be empty!</p>
<ul class='inlinelist'>
{% for f in ("png","svg","pdf","dot") %}
  <li><a href="{{url_for('picked', action='rdfsgraph', format_=f)}}">{{f}}</a></li>
{% endfor %}
</ul>
<br />
</div>

<br/>
<div id="footer">
  <a href='/'>back to index</a>	
</div>

{% endblock %}
